package NWPackage;

public class WeightedCell extends Cell {
	
	private String 	C1;
	private String C2;
	private double entropy;
	
	public WeightedCell() {
		
	}


	public void setCandidates(String c1, String c2) {
		C1 = c1;
		C2 = c2;
	}
	public void setCandidates(String c1, String c2, double entropy) {
		C1 = c1;
		C2 = c2;
		this.setEntropy(entropy);
	}
	public WeightedCell(String agentName, int index, String c1, String c2) {
		super(agentName,index);
		C1 = c1;
		C2 = c2;
		this.setEntropy(0);
	}


	public String[] getCandidates() {
		String[] candidates = new String[2];
		candidates[0] = C1;
		candidates[1] = C2;
		return candidates;
	}


	public void setEntropy(double entropy) {
		this.entropy = entropy;
	}
	
	public void setEntropyInfo(double entropy,String winner) {
		this.entropy = entropy;
		this.setAlgPreffered(winner);
	}

	public double getEntropy() {
		return this.entropy;
	}
	
	public String getMyChooseForWin() {
		return this.getAlgPrefferedCandidate();
	}

}
